aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0a577ff..289dccb 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -5501,7 +5501,7 @@ int main(int argc, char *argv[])
}
if (S_ISREG(sb.st_mode)) {
- execlp(opener, opener, arg, NULL);
+ spawn(opener, arg, NULL, NULL, F_NOWAIT);
return _SUCCESS;
}
}