Commit 623603a6 authored by Niels Möller's avatar Niels Möller
Browse files

* src/argp/argp-parse.c (argp_default_parser): Let OPT_HANG print

the process id to stderr.

Rev: src/argp/argp-parse.c:1.16
parent 183e9469
......@@ -138,6 +138,8 @@ argp_default_parser (int key, char *arg, struct argp_state *state)
case OPT_HANG:
_argp_hang = atoi (arg ? arg : "3600");
fprintf(state->err_stream, "%s: pid = %ld\n",
state->name, (long) getpid());
while (_argp_hang-- > 0)
__sleep (1);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment