version 1.20, 2020/04/13 10:59:58 |
version 1.21, 2021/08/20 19:50:17 |
|
|
cmd_wait_for_exec(struct cmd *self, struct cmdq_item *item) |
cmd_wait_for_exec(struct cmd *self, struct cmdq_item *item) |
{ |
{ |
struct args *args = cmd_get_args(self); |
struct args *args = cmd_get_args(self); |
const char *name = args->argv[0]; |
const char *name = args_string(args, 0); |
struct wait_channel *wc, wc0; |
struct wait_channel *wc, find; |
|
|
wc0.name = name; |
find.name = name; |
wc = RB_FIND(wait_channels, &wait_channels, &wc0); |
wc = RB_FIND(wait_channels, &wait_channels, &find); |
|
|
if (args_has(args, 'S')) |
if (args_has(args, 'S')) |
return (cmd_wait_for_signal(item, name, wc)); |
return (cmd_wait_for_signal(item, name, wc)); |