@ -36,7 +36,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log ( SWAY_ERROR , " Failed to create pipe for swaynag " ) ;
sway_log ( SWAY_ERROR , " Failed to create pipe for swaynag " ) ;
return false ;
return false ;
}
}
if ( ! s et_cloexec( swaynag - > fd [ 1 ] , true ) ) {
if ( ! s way_s et_cloexec( swaynag - > fd [ 1 ] , true ) ) {
goto failed ;
goto failed ;
}
}
}
}
@ -46,7 +46,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log_errno ( SWAY_ERROR , " socketpair failed " ) ;
sway_log_errno ( SWAY_ERROR , " socketpair failed " ) ;
goto failed ;
goto failed ;
}
}
if ( ! s et_cloexec( sockets [ 0 ] , true ) | | ! set_cloexec( sockets [ 1 ] , true ) ) {
if ( ! s way_s et_cloexec( sockets [ 0 ] , true ) | | ! sway_ set_cloexec( sockets [ 1 ] , true ) ) {
goto failed ;
goto failed ;
}
}
@ -69,7 +69,7 @@ bool swaynag_spawn(const char *swaynag_command,
sway_log_errno ( SWAY_ERROR , " fork failed " ) ;
sway_log_errno ( SWAY_ERROR , " fork failed " ) ;
_exit ( EXIT_FAILURE ) ;
_exit ( EXIT_FAILURE ) ;
} else if ( pid = = 0 ) {
} else if ( pid = = 0 ) {
if ( ! s et_cloexec( sockets [ 1 ] , false ) ) {
if ( ! s way_s et_cloexec( sockets [ 1 ] , false ) ) {
_exit ( EXIT_FAILURE ) ;
_exit ( EXIT_FAILURE ) ;
}
}