Mercurial > pidgin
comparison src/buddy.c @ 1229:229bf438c591
[gaim-migrate @ 1239]
not sure if this works yet
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Mon, 11 Dec 2000 07:42:19 +0000 |
parents | cda9dfc65693 |
children | 5395053cdee1 |
comparison
equal
deleted
inserted
replaced
1228:6773043cf9f6 | 1229:229bf438c591 |
---|---|
1330 if (c == NULL) | 1330 if (c == NULL) |
1331 c = new_conversation(name); | 1331 c = new_conversation(name); |
1332 | 1332 |
1333 write_to_conv(c, b->message, WFLAG_SEND, NULL); | 1333 write_to_conv(c, b->message, WFLAG_SEND, NULL); |
1334 serv_send_im(u->gc, name, b->message, 0); | 1334 serv_send_im(u->gc, name, b->message, 0); |
1335 } | |
1336 if (b->cmd == 1) | |
1337 { | |
1338 int pid = fork(); | |
1339 | |
1340 if (pid == 0) { | |
1341 char *args[4]; | |
1342 args[0] = "sh"; | |
1343 args[1] = "-c"; | |
1344 args[2] = b->command; | |
1345 args[3] = NULL; | |
1346 execvp(args[0], args); | |
1347 _exit(0); | |
1348 } else if (pid > 0) { | |
1349 gtk_timeout_add(100, (GtkFunction)clean_pid, NULL); | |
1350 } | |
1335 } | 1351 } |
1336 | 1352 |
1337 rem_bp(NULL, b); | 1353 rem_bp(NULL, b); |
1338 | 1354 |
1339 } | 1355 } |