Skip to content

Commit

Permalink
umockdev-wrapper: Exec program instead of running it as a child
Browse files Browse the repository at this point in the history
This avoids keeping the shell process around and makes killing the subprogram
from outside work properly.
  • Loading branch information
Martin Pitt committed Feb 20, 2013
1 parent a296798 commit 0a758fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
0.2.1 (UNRELEASED)
------------------
- umockdev-wrapper: Use exec to avoid keeping the shell process around and make
killing the subprogram from outside work properly.

0.2 (2013-02-20)
----------------
Compatibility break: This does not work any more with recorded ioctl files from
Expand Down
2 changes: 1 addition & 1 deletion src/umockdev-wrapper
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# Wrapper program to preload the libumockdev library, so that test programs can
# set $UMOCKDEV_DIR for redirecting sysfs and other queries to a test bed.
env LD_PRELOAD=libumockdev-preload.so.0:$LD_PRELOAD "$@"
exec env LD_PRELOAD=libumockdev-preload.so.0:$LD_PRELOAD "$@"

0 comments on commit 0a758fe

Please sign in to comment.