mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
vgdb: Unlink pipes and mapped file before (re)creating these.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11972
This commit is contained in:
parent
5d9b197088
commit
e952915190
@ -278,6 +278,15 @@ void remote_open (char *name)
|
||||
|
||||
if (!mknod_done) {
|
||||
mknod_done++;
|
||||
|
||||
/*
|
||||
* Unlink just in case a previous process with the same PID had been
|
||||
* killed and hence Valgrind hasn't had the chance yet to remove these.
|
||||
*/
|
||||
VG_(unlink)(from_gdb);
|
||||
VG_(unlink)(to_gdb);
|
||||
VG_(unlink)(shared_mem);
|
||||
|
||||
safe_mknod(from_gdb);
|
||||
safe_mknod(to_gdb);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user