diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-02 19:43:45 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2015-08-02 19:43:45 +0200 |
commit | 75e30af849b2ce68c0a23aaa481ef9cb84c28db1 (patch) | |
tree | 5aef720f902fa9a90899f94926f2559e5942a3d9 /nq.c | |
parent | b175ef6cd4a1989c9b9b46cfd52ab2e5991cf497 (diff) | |
download | nq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.tar.gz nq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.tar.xz nq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.zip |
export NQJOBID to running jobs
Diffstat (limited to 'nq.c')
-rw-r--r-- | nq.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nq.c b/nq.c index 41a6cca..edc338e 100644 --- a/nq.c +++ b/nq.c @@ -271,6 +271,7 @@ again: dup2(lockfd, 1); close(lockfd); + setenv("NQJOBID", lockfile+1, 1); execvp(argv[1], argv+1); perror("execvp"); |