Browse Source

hannes:


			
			
				rocklinux
			
			
		
hannes 20 years ago
parent
commit
7e66f2ec02
2 changed files with 8 additions and 1 deletions
  1. +1
    -0
      misc/tools-source/fl_stparse.c
  2. +7
    -1
      package/base/sysfiles/mkpkg.sh

+ 1
- 0
misc/tools-source/fl_stparse.c

@ -145,6 +145,7 @@ int main(int argc, char ** argv) {
}
if ( sscanf(line, "%d _exit(%d", &pid, &newpid) == 2 ||
sscanf(line, "%d exit(%d", &pid, &newpid) == 2 ||
sscanf(line, "%d exit_group(%d", &pid, &newpid) == 2 ) {
freeproc(pid);
continue;

+ 7
- 1
package/base/sysfiles/mkpkg.sh

@ -16,9 +16,15 @@ fi
pkg=$1; shift
slog=`mktemp` wlog=`mktemp` flog=`mktemp`
if [ "$(uname -m)" = "ppc" ]; then
SYSEXIT="exit"
else
SYSEXIT="_exit"
fi
strace -o $slog -F -f -q -e open,creat,`
`mkdir,mknod,link,symlink,rename,utime,chdir,`
`execve,fork,vfork,_exit,exit_group -p $$ &
`execve,fork,vfork,$SYSEXIT,exit_group -p $$ &
strace_pid=$!; sleep 1; cd $PWD
"$@"

Loading…
Cancel
Save