diff options
Diffstat (limited to 'sway/swaynag.c')
-rw-r--r-- | sway/swaynag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/swaynag.c b/sway/swaynag.c index ba582989..4a0a6d30 100644 --- a/sway/swaynag.c +++ b/sway/swaynag.c | |||
@@ -64,6 +64,8 @@ bool swaynag_spawn(const char *swaynag_command, | |||
64 | sway_log(SWAY_ERROR, "Failed to create fork for swaynag"); | 64 | sway_log(SWAY_ERROR, "Failed to create fork for swaynag"); |
65 | goto failed; | 65 | goto failed; |
66 | } else if (pid == 0) { | 66 | } else if (pid == 0) { |
67 | restore_nofile_limit(); | ||
68 | |||
67 | pid = fork(); | 69 | pid = fork(); |
68 | if (pid < 0) { | 70 | if (pid < 0) { |
69 | sway_log_errno(SWAY_ERROR, "fork failed"); | 71 | sway_log_errno(SWAY_ERROR, "fork failed"); |