forked from martinpitt/umockdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
umockdev-wrapper: Exec program instead of running it as a child
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
Showing
2 changed files
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "$@" | ||
|