"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/mx/child.c" between
s-nail-14.9.21.tar.xz and s-nail-14.9.22.tar.xz

About: S-nail is a mail processing system intended to provide the functionality of the POSIX mailx command and offers extensions for line editing, IDNA, MIME, S/MIME, SMTP and POP3 (and IMAP). It is usable as a mail batch language.

child.c  (s-nail-14.9.21.tar.xz):child.c  (s-nail-14.9.22.tar.xz)
skipping to change at line 37 skipping to change at line 37
#define su_FILE child #define su_FILE child
#define mx_SOURCE #define mx_SOURCE
#define mx_SOURCE_CHILD #define mx_SOURCE_CHILD
#ifndef mx_HAVE_AMALGAMATION #ifndef mx_HAVE_AMALGAMATION
# include "mx/nail.h" # include "mx/nail.h"
#endif #endif
#include <sys/wait.h> #include <sys/wait.h>
#if defined mx_HAVE_CLOSE_RANGE
# include mx_CLOSE_RANGE_H
#endif
#include <su/cs.h> #include <su/cs.h>
#include <su/mem.h> #include <su/mem.h>
#include "mx/cmd.h" #include "mx/cmd.h"
#include "mx/file-streams.h" #include "mx/file-streams.h"
#include "mx/sigs.h" #include "mx/sigs.h"
#include "mx/termcap.h" #include "mx/termcap.h"
#include "mx/termios.h" #include "mx/termios.h"
#include "mx/child.h" #include "mx/child.h"
skipping to change at line 506 skipping to change at line 502
if(i) if(i)
close(fd); close(fd);
} }
/* Close our side of the control pipe, unless we should wait for cloexec to /* Close our side of the control pipe, unless we should wait for cloexec to
* do that for us */ * do that for us */
if((ccp->cc_flags & (mx_CHILD_SPAWN_CONTROL | mx_CHILD_SPAWN_CONTROL_LINGER) if((ccp->cc_flags & (mx_CHILD_SPAWN_CONTROL | mx_CHILD_SPAWN_CONTROL_LINGER)
) == mx_CHILD_SPAWN_CONTROL) ) == mx_CHILD_SPAWN_CONTROL)
close(S(int,ccp->cc__cpipe[1])); close(S(int,ccp->cc__cpipe[1]));
#if defined mx_HAVE_CLOSE_RANGE
mx_CLOSE_RANGE_FUN(STDERR_FILENO + 1, ~0u);
#elif defined mx_HAVE_CLOSEFROM
closefrom(STDERR_FILENO + 1);
#endif
if(ccp->cc_mask != NIL){ if(ccp->cc_mask != NIL){
sigset_t *ssp; sigset_t *ssp;
ssp = S(sigset_t*,ccp->cc_mask); ssp = S(sigset_t*,ccp->cc_mask);
for(i = 1; i < NSIG; ++i) for(i = 1; i < NSIG; ++i)
if(sigismember(ssp, i)) if(sigismember(ssp, i))
safe_signal(i, SIG_IGN); safe_signal(i, SIG_IGN);
if(!sigismember(ssp, SIGINT)) if(!sigismember(ssp, SIGINT))
safe_signal(SIGINT, SIG_DFL); safe_signal(SIGINT, SIG_DFL);
} }
 End of changes. 2 change blocks. 
10 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)