netdev-linux: "Down" tap devices before setting hw addr.
[openvswitch] / lib / signals.c
index 7650cb9b0dacdd5f5953c86cf05f4f8a8805f4a5..152afcf6cb8669e55840db487d9a9f4502bae6fc 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2008, 2009, 2011 Nicira Networks.
+ * Copyright (c) 2008, 2009, 2011, 2012 Nicira, Inc.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -63,9 +63,7 @@ signal_init(void)
     static bool inited;
     if (!inited) {
         inited = true;
-        xpipe(fds);
-        set_nonblocking(fds[0]);
-        set_nonblocking(fds[1]);
+        xpipe_nonblocking(fds);
     }
 }