All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] tap: Use g_spawn_sync() and g_spawn_check_wait_status()
@ 2025-01-04  8:04 Akihiko Odaki
  2025-01-04  8:04 ` [PATCH v2 1/2] glib-compat: Define g_spawn_check_wait_status() Akihiko Odaki
  2025-01-04  8:04 ` [PATCH v2 2/2] tap: Use g_spawn_sync() and g_spawn_check_wait_status() Akihiko Odaki
  0 siblings, 2 replies; 8+ messages in thread
From: Akihiko Odaki @ 2025-01-04  8:04 UTC (permalink / raw)
  To: Jason Wang; +Cc: qemu-devel, devel, Akihiko Odaki

g_spawn_sync() gives an informative message if it fails to execute
the script instead of reporting exiting status 1.

g_spawn_check_wait_status() also gives an message easier to understand
than the raw value returned by waitpid().

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
Changes in v2:
- EDITME: describe what is new in this series revision.
- EDITME: use bulletpoints and terse descriptions.
- Link to v1: https://lore.kernel.org/r/20231219-glib-v1-0-1b040d286b91@daynix.com

---
Akihiko Odaki (2):
      glib-compat: Define g_spawn_check_wait_status()
      tap: Use g_spawn_sync() and g_spawn_check_wait_status()

 include/glib-compat.h |   2 +
 net/tap.c             | 169 ++++++++++++++++++++------------------------------
 2 files changed, 68 insertions(+), 103 deletions(-)
---
base-commit: 38d0939b86e2eef6f6a622c6f1f7befda0146595
change-id: 20231219-glib-034a34bb05d8

Best regards,
-- 
Akihiko Odaki <akihiko.odaki@daynix.com>



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-15 10:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-04  8:04 [PATCH v2 0/2] tap: Use g_spawn_sync() and g_spawn_check_wait_status() Akihiko Odaki
2025-01-04  8:04 ` [PATCH v2 1/2] glib-compat: Define g_spawn_check_wait_status() Akihiko Odaki
2025-01-06  9:22   ` Daniel P. Berrangé
2025-01-04  8:04 ` [PATCH v2 2/2] tap: Use g_spawn_sync() and g_spawn_check_wait_status() Akihiko Odaki
2025-01-06  9:34   ` Daniel P. Berrangé
2025-01-15  6:04     ` Akihiko Odaki
2025-01-15 10:38       ` Daniel P. Berrangé
2025-01-07  1:45   ` Lei Yang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.