Set the ssvm_ethernet interface pid. Otherwise, the recursive lock

check breaks in a horrible way.

Change-Id: I5c2e69f89152a3f073e678354763086ac7bb7610
Signed-off-by: Dave Barach <dave@barachs.net>
This commit is contained in:
Dave Barach
2016-01-26 15:36:42 -05:00
parent 014bdeb850
commit c5d4dc7f8a
+1
View File
@@ -49,6 +49,7 @@ int ssvm_eth_create (ssvm_eth_main_t * em, u8 * name, int is_master)
intfc->ssvm_size = em->segment_size;
intfc->i_am_master = 1;
intfc->name = name;
intfc->my_pid = getpid();
if (is_master == 0)
{
rv = ssvm_slave_init (intfc, 20 /* timeout in seconds */);