Skip to content

Commit

Permalink
Disable mtcp_check_vdso() during restart.
Browse files Browse the repository at this point in the history
Closes #43.
  • Loading branch information
karya0 committed Mar 23, 2015
1 parent 11faef2 commit 1a7d8db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/mtcp/mtcp_restart.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ MTCP_PRINTF("Attach for debugging.");
{int x=1; while(x);}
#endif

// Remove this block and the corresponding file after sufficient testing.
#ifdef ENABLE_VDSO_CHECK
/* i386 uses random addresses for vdso. Make sure that its location
* will not conflict with other memory regions.
* (Other arch's may also need this in the future. So, we do it for all.)
Expand All @@ -191,6 +193,7 @@ MTCP_PRINTF("Attach for debugging.");
* kernel, on restart, knows only the new vdso.
*/
mtcp_check_vdso(environ);
#endif

rinfo.fd = -1;
rinfo.use_gdb = 0;
Expand Down

0 comments on commit 1a7d8db

Please sign in to comment.