]> git.ozlabs.org Git - petitboot/commit
discover: Allow discover server to receive boot messages
authorJeremy Kerr <jk@ozlabs.org>
Wed, 27 Feb 2013 01:33:34 +0000 (09:33 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 15 Apr 2013 07:40:23 +0000 (15:40 +0800)
commit01ed80939b8ed440390729c524ad875047dbd406
tree731e7e90050a0c0ea20493ccfde018083ccb93b3
parentc25601a71b0951225691aa2edc389826f7f3836c
discover: Allow discover server to receive boot messages

Currently, the petitboot socket is one way: messages are only sent from
server to client.

Beause we want the clients to trigger a boot, this change allows the
server to receive messages on the petitboot socket. This is just a
matter of adding a waiter to the client-specific socket, then handling
incoming messages.

At present we don't do anything with the messages, but we'll add a
handler later.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
discover/discover-server.c