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:00:42 +0000 (10:00 -0700)
commite584f6a8e33e5c3643155af2d0b10975d50e524a
treee579c6ebce39392d24c8790ccce8f541d93b7b2d
parent223fad326cfe775489879759103df3ccb0273751
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