util: Don't set thread name to empty
authorGuolin Yang <gyang@nicira.com>
Mon, 9 Sep 2013 16:38:01 +0000 (09:38 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 9 Sep 2013 17:03:42 +0000 (10:03 -0700)
commit7c16c8cbe6a2b701e66d52b407fee4b7ed2065b2
tree63852377b5e8637b0c2b8d3a2c2a9207baa6faca
parentf79df4721c7d2800d358ae7b8e8c5a9d20095ca1
util: Don't set thread name to empty

In monitor_daemon(), it set subprogram_name to "" which causes system crash
in some platform when trying to set the thread name to "".  This change set
thread name to program name in this case.

Signed-off-by: Guolin Yang <gyang@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/util.c