Skip to content
Snippets Groups Projects
Commit df11f7fd authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

It works now. Use notifpipe uniquely when the catch-all logger is not created....

It works now. Use notifpipe uniquely when the catch-all logger is not created. Do not use auto_string on chained stralloc
parent 68d2fc45
No related branches found
No related tags found
No related merge requests found
......@@ -446,7 +446,7 @@ static inline void run_stage2 (char const *const *envp, size_t envlen, char cons
setsid() ;
if (catch_log) {
if (!catch_log) {
close(notifpipe[1]) ;
wait_for_notif(notifpipe[0]) ;
......@@ -468,8 +468,10 @@ static inline void run_stage2 (char const *const *envp, size_t envlen, char cons
size_t tlen = sacmdline.len ;
char t[tlen + 1] ;
auto_strings(t,sacmdline.s) ;
memcpy(t,sacmdline.s,tlen) ;
t[tlen] = 0 ;
stralloc_free(&sacmdline) ;
xmexec_fm(newargv, envp, envlen, t, tlen) ;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment