Leonid Plyushch
5 years ago
No known key found for this signature in database
GPG Key ID: 45F2964132545795
1 changed files with
0 additions and
15 deletions
-
packages/zsh/Src-exec.c.patch
|
|
@ -10,18 +10,3 @@ diff -u -r ../zsh-5.6/Src/exec.c ./Src/exec.c |
|
|
|
} |
|
|
|
} |
|
|
|
} else |
|
|
|
@@ -2739,9 +2739,12 @@
|
|
|
|
sigtrapped[SIGEXIT] = 0; |
|
|
|
#ifdef HAVE_NICE |
|
|
|
/* Check if we should run background jobs at a lower priority. */ |
|
|
|
- if ((how & Z_ASYNC) && isset(BGNICE))
|
|
|
|
- if (nice(5) < 0)
|
|
|
|
+ if ((how & Z_ASYNC) && isset(BGNICE)) {
|
|
|
|
+ errno = 0;
|
|
|
|
+ nice(5);
|
|
|
|
+ if (errno != 0)
|
|
|
|
zwarn("nice(5) failed: %e", errno); |
|
|
|
+ }
|
|
|
|
#endif /* HAVE_NICE */ |
|
|
|
|
|
|
|
return 0; |
|
|
|