summary refs log tree commit diff
path: root/nq.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-08-02 19:43:45 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2015-08-02 19:43:45 +0200
commit75e30af849b2ce68c0a23aaa481ef9cb84c28db1 (patch)
tree5aef720f902fa9a90899f94926f2559e5942a3d9 /nq.c
parentb175ef6cd4a1989c9b9b46cfd52ab2e5991cf497 (diff)
downloadnq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.tar.gz
nq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.tar.xz
nq-75e30af849b2ce68c0a23aaa481ef9cb84c28db1.zip
export NQJOBID to running jobs
Diffstat (limited to 'nq.c')
-rw-r--r--nq.c1
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");