Skip to content

Commit c0871c2

Browse files
authored
vine_factory: print signal number on handler (#4090)
1 parent 35c51b0 commit c0871c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

batch_job/src/vine_factory.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,10 @@ invoke, so we construct a string and emit it with a low-level write.
146146

147147
static void handle_abort( int sig )
148148
{
149-
const char *msg = "received abort signal, shutting down workers...\n";
149+
char *msg = string_format("received signal(%d), shutting down workers...\n", sig);
150150
write(1,msg,strlen(msg));
151151
abort_flag = 1;
152+
free(msg);
152153
}
153154

154155
static void ignore_signal( int sig )

0 commit comments

Comments
 (0)