aboutsummaryrefslogtreecommitdiffhomepage
path: root/proc.h
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-29 01:45:51 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-10-29 01:45:51 -0700
commit425afa63cec7015cbffb170c52ff32fc78a24ce7 (patch)
tree29dbf7ec3d2b79d997e91e9d668d365455e0b84f /proc.h
parent7c09a767b6031720cb07505375cf8a6863fe1268 (diff)
Don't use posix_spawn when file redirections are involved (except /dev/null) because the error handling is too difficult
Fix exec to correctly handle the case where a pid could not be created due to posix_spawn failing Should fix https://github.com/fish-shell/fish-shell/issues/364
Diffstat (limited to 'proc.h')
-rw-r--r--proc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/proc.h b/proc.h
index aea95ba6..6feb9afe 100644
--- a/proc.h
+++ b/proc.h
@@ -509,6 +509,9 @@ void job_handle_signal( int signal, siginfo_t *info, void *con );
*/
int job_signal( job_t *j, int signal );
+/* Marks a process as failed to execute (and therefore completed) */
+void job_mark_process_as_failed( const job_t *job, process_t *p );
+
#ifdef HAVE__PROC_SELF_STAT
/**
Use the procfs filesystem to look up how many jiffies of cpu time