summaryrefslogtreecommitdiff
path: root/vms/vms.c
diff options
context:
space:
mode:
Diffstat (limited to 'vms/vms.c')
-rw-r--r--vms/vms.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/vms/vms.c b/vms/vms.c
index 364496731e..8c35d9e70f 100644
--- a/vms/vms.c
+++ b/vms/vms.c
@@ -10954,7 +10954,11 @@ do_spawn2(pTHX_ const char *cmd, int flags)
fp = safe_popen(aTHX_ cmd, mode, (int *)&sts);
if (fp != NULL)
my_pclose(fp);
- /* sts will be the pid in the nowait case */
+ /* sts will be the pid in the nowait case, so leave a
+ * hint saying not to do any bit shifting to it.
+ */
+ if (flags & CLI$M_NOWAIT)
+ PL_statusvalue = -1;
}
return sts;
} /* end of do_spawn2() */